﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class UsersChargeInputBase: ValidationModel
    {

        public string Title { get; set; }

        /// <summary>
        ///账单编号
        /// </summary>
        public string ChargeCode { get; set; }
        /// <summary>
        ///交易金额
        /// </summary>
        public decimal ChargeTotal { get; set; }


        public decimal UserCharge { get; set; }

        public decimal ShopCharge { get; set; }


        /// <summary>
        ///交易类型
        /// </summary>
        public int ChargeSort { get; set; }
        /// <summary>
        ///当前余额
        /// </summary>
        public decimal Balance { get; set; }
        /// <summary>
        ///操作时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        ///交易用户ID
        /// </summary>
        public string UserID { get; set; }
        /// <summary>
        ///附件
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        ///操作人
        /// </summary>
        public string CreateID { get; set; }
    }


    [MapToType(typeof(UsersCharge))]
    public class AddUsersChargeInput : UsersChargeInputBase
    { 
    }

    [MapToType(typeof(UsersCharge))]
    public class UpdateUsersChargeInput : UsersChargeInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
